dbuser=root
dbpasswd=soooner.com
dbserver=127.0.0.1
port=3306
dbopt=--opt
dbname=minicms
dumpfilename=`date +%F`.sql
tarfile=/mnt/disk-2/minicms$fileprefix-`date +%F`.tar.gz
mysqldump -u $dbuser -p$dbpasswd -h $dbserver -P$port $dbopt $dbname >$dbname$dumpfilename
tar -czvf $tarfile $dbname$dumpfilename
rm -f $dbname$dumpfilename
tar -czvf /mnt/disk-2/web.tar.gz /data/web/
